package com.loong.user.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description: 后台系统用户请求参数
 * @Author: hzp
 * @Date: 2020-10-16 9:53
 */
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ManageAdminParam {
    @NotNull(groups = {CommonUpdate.class},message = "id不能为空")
    private Long id;
    /**
     * 用户id
     */
    @NotNull(groups = {CommonInsert.class},message = "用户id不能为空")
    private Long userId;

    /**
     * 姓名
     */
    @NotBlank(groups = { CommonInsert.class},message = "名称不能为空")
    private String name;

    /**
     * 角色id
     */
    @NotNull(groups = { CommonInsert.class},message = "id不能为空")
    private Long roleId;
}
